﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using StuRecruitSysModels;
using StuRecruitSysDAL;

namespace StuRecruitSysBLL
{
    public class LoginManager
    {
        StudentService studentService = new StudentService();
        CashierService cashierService = new CashierService();
        Student student = new Student();
        Cashier cashier = new Cashier();
    

        public  Student StudentLogin( String username)
        {
            Student student = new Student();
            student.Spwd = studentService.studentLogin(username).Spwd;
            student.Email = studentService.studentLogin(username).Email;
            return student;
        }

        public  Cashier CashierLogin(String username)
        {

            Cashier cashier = new Cashier();
            cashier.Cpwd = cashierService.GetCashierByUsername(username).Cpwd;
            return cashier;
        }
    }
}
